home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / August 96 / Re ODF Inverted Text Question < prev    next >
Encoding:
Internet Message Format  |  1996-08-12  |  1.4 KB  |  [TEXT/ttxt]

  1. Subject:     Re: ODF Inverted Text Question
  2. Sent:        8/12/96 10:16 AM
  3. Received:    8/12/96 10:41 AM
  4. From:        Kirk Swenson, kswenson@keypress.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >>2. When I call the FW_CTextShape::RenderText method with an ink that is
  9. >>set to be inverted, it doesn't seem to invert correctly. Using the same
  10. >>ink with a FW_CRectShape inverts the rect. What gives?
  11. >>
  12. >We fixed a couple of problems with Invert but I am not sure we fixed this
  13. >one. I'll check
  14.  
  15. Bear in mind that FW_kInvertInk corresponds to "an ink with black
  16. foreground color, white background color, and Invert transfer mode."  If
  17. what you want is white text on a dark background (e.g. to indicate
  18. selection), as I recently did, you need to roll your own ink for this
  19. purpose.  I use FW_CInk( FW_kRGBWhite, FW_kRGBBlack, FW_kCopy) to get white
  20. text in a black rectangle that covers what's underneath, and which makes it
  21. look selected.  Would it make sense to add a FW_kSelectedTextInk to ODF
  22. that would be the analog to the existing FW_kNormalTextInk?  Of course, to
  23. be completely correct, you should probably use the user's currently
  24. selected hilite color, which would mean it couldn't be a constant, unlike
  25. the other standard inks.
  26.  
  27. Kirk Swenson
  28. Senior Software Engineer
  29. Key Curriculum Press
  30. kswenson@keypress.com
  31.  
  32.  
  33.